﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Venta.aspx.cs" Inherits="megahealth_Venta" MasterPageFile="~/megahealth/MasterPage.master" %>



<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>



<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

    <!-- MAIN WRAPPER -->
<div id="container"> 
  
 
  <!-- CONTENT -->
  <div id="content_holder" class="fixed">
    <div class="inner">
    
      <div class="box">
          
              <h2 class="heading-title" style="font-family:Arial; font-weight:bold;"><span>Informacion</span></h2>
         <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
              </asp:ToolkitScriptManager>
              <table align="center" class="form" width="600px">
                  <tr>
                    <td align="left" class="content_cart">Referencia:</td>
                    <td align="left">
                        <asp:TextBox ID="tb_ref" runat="server" Enabled="False" CssClass="content_txt"></asp:TextBox>
                    </td>
                    <td align="left" class="content_cart">Monto(Q):</td>
                    <td align="left">
                        <asp:TextBox ID="tb_monto" runat="server" CssClass="content_txt"></asp:TextBox>
                    </td>
                  </tr>
                  <tr>
                    <td align="left" class="content_cart">Fechacreada:</td>
                    <td align="left">
                        <asp:TextBox ID="tb_fecha_creada" runat="server" CssClass="content_txt"></asp:TextBox><asp:CalendarExtender ID="tb_fecha_creada_CalendarExtender" runat="server" TargetControlID="tb_fecha_creada"></asp:CalendarExtender>
                    </td>
                    <td align="left" class="content_cart">Fechafinalizada:</td>
                    <td align="left">
                        <asp:TextBox ID="tb_fecha_fin" runat="server" CssClass="content_txt"></asp:TextBox><asp:CalendarExtender ID="tb_fecha_fin_CalendarExtender" runat="server" TargetControlID="tb_fecha_fin"></asp:CalendarExtender>
                    </td>
                  </tr>
                  <tr>
                    <td align="left" class="content_cart">Fecha esperada:</td>
                    <td align="left">
                        <asp:TextBox ID="tb_fecha_esp" runat="server" CssClass="content_txt"></asp:TextBox><asp:CalendarExtender ID="tb_fecha_esp_CalendarExtender" runat="server" TargetControlID="tb_fecha_esp"></asp:CalendarExtender>
                    </td>
                    <td align="left" class="content_cart">Etapa:</td>
                    <td align="left">
                        <asp:DropDownList ID="cb_etapa" runat="server" CssClass="content_txt"><asp:ListItem Value="1">Compra Minima</asp:ListItem><asp:ListItem Value="2">Ficticio</asp:ListItem><asp:ListItem Value="3">Sin confirmacion fecha</asp:ListItem></asp:DropDownList>
                    </td>
                  </tr>
                  <tr>
                    <td align="left" class="content_cart">Estado:</td>
                    <td align="left">
                        <asp:DropDownList ID="cb_estado" runat="server" Width="85%" CssClass="content_txt"><asp:ListItem Value="1">Potencial</asp:ListItem><asp:ListItem Value="2">Venta</asp:ListItem></asp:DropDownList>
                    </td>
                    <td class="venta_info_titulo" bgcolor="#DDE2DD">
                        <asp:LinkButton ID="lnk_ocultar" runat="server" ForeColor="#DDE2DD">_</asp:LinkButton>
                    </td>
                    <td bgcolor="#DDE2DD">&nbsp;</td>
                  </tr>
                  <tr>
                    <td align="left" class="content_cart">Dim beneficiario:</td>
                    <td align="left">
                          <asp:TextBox ID="tb_dim" runat="server" Enabled="False" CssClass="content_txt"></asp:TextBox>
                    </td>
                    <td bgcolor="#DDE2DD">&nbsp;</td>
                    <td bgcolor="#DDE2DD" align="left">
                        <asp:TextBox ID="tb_searchben" runat="server" Width="80%" 
                            CssClass="content_txt" ontextchanged="tb_searchben_TextChanged"></asp:TextBox>&nbsp;<asp:ImageButton ID="btn_searchben" runat="server" ImageUrl="~/megahealth/image/search_icon.png" onclick="btn_searchben_Click" />
                    </td>
                  </tr>
                  <tr>
                    <td align="left" class="content_cart">Nombre beneficiario:</td>
                    <td align="left">
                        <asp:TextBox ID="tb_nombre" runat="server" Enabled="False" CssClass="content_txt"></asp:TextBox>
                    </td>
                    <td align="left" class="content_cart">Telefono:</td>
                    <td align="left">
                        <asp:TextBox ID="tb_telefono" runat="server" Enabled="False" CssClass="content_txt"></asp:TextBox>
                    </td>
                  </tr>
                  <tr>
                    <td align="left" class="content_cart">Dim patrocinador:</td>
                    <td align="left">
                        <asp:TextBox ID="tb_dimpat" runat="server" CssClass="content_txt"></asp:TextBox>
                    </td>
                    <td class="venta_info_titulo" bgcolor="#DDE2DD">&nbsp;</td>
                    <td bgcolor="#DDE2DD">&nbsp;</td>
                  </tr>
                  <tr>
                      <td align="left" class="content_cart">Patrocinador:</td>
                      <td align="left">
                          <asp:TextBox ID="tb_nombrepat" runat="server" CssClass="content_txt"></asp:TextBox>
                      </td>
                      <td align="left" class="content_cart">Telefono:</td>
                      <td align="left">
                          <asp:TextBox ID="tb_telpat" runat="server" CssClass="content_txt"></asp:TextBox>
                      </td>
                  </tr>
                 
                  <tr>
                      <td align="left" class="content_cart">Notas:</td>
                      <td colspan="3" align="left">
                          <asp:TextBox ID="tb_notas" runat="server" Width="92%" CssClass="content_txt"></asp:TextBox>
                      </td>
                  </tr>
                 
                  <tr>
                      <td class="venta_info_titulo" colspan="4">
                          <asp:Panel ID="Presultsearch" runat="server" BackColor="White" 
                              BorderColor="#666666" BorderStyle="Inset" style="text-align: center">
                              <br />
                              <asp:Label ID="Label1" runat="server" style="text-align: center" 
                                  Text="Resultados de la Busqueda"></asp:Label>
                              <br />
                              <br />
                              <asp:GridView ID="gv_search" runat="server" BackColor="White" 
                                  BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                                  ForeColor="Black" GridLines="Vertical" 
                                  onrowdatabound="gv_search_RowDataBound" Width="700px">
                                  <AlternatingRowStyle BackColor="White" />
                                  <FooterStyle BackColor="#CCCC99" />
                                  <HeaderStyle BackColor="#336600" Font-Bold="True" ForeColor="White" />
                                  <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                  <RowStyle BackColor="#DDE2DD" />
                                  <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                  <SortedAscendingCellStyle BackColor="#FBFBF2" />
                                  <SortedAscendingHeaderStyle BackColor="#848384" />
                                  <SortedDescendingCellStyle BackColor="#EAEAD3" />
                                  <SortedDescendingHeaderStyle BackColor="#575357" />
                                   <Columns>
                                                <asp:TemplateField>
                                                  <ItemTemplate>
                                                      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/megahealth/image/checkdone.png"  OnClick="Elegir"/>
                                                      
                                                     </ItemTemplate></asp:TemplateField>
                                                
                                            </Columns>
                              </asp:GridView>
                              <br />
                              <asp:LinkButton ID="LinkButton6" runat="server" CssClass="button" 
                                  onclick="LinkButton6_Click">Cancelar</asp:LinkButton>
                              <br />
                              <br />
                          </asp:Panel>
                          <asp:ModalPopupExtender ID="Presultsearch_ModalPopupExtender" runat="server"  BackgroundCssClass="FondoAplicacion"
                              DynamicServicePath="" Enabled="True" TargetControlID="lnk_ocultar" PopupControlID="Presultsearch">
                          </asp:ModalPopupExtender>
                      </td>
                  </tr>
                 
              </table>
              <br />
              <br />
              <br/>
              <br/>
           
        
        </div>
       
          <div class="buttons">
          <div>
              <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
                  <asp:LinkButton ID="LinkButton1" runat="server" 
    CssClass="button" onclick="LinkButton1_Click">Guardar</asp:LinkButton>
            <asp:LinkButton ID="LinkButton7" runat="server" 
    CssClass="button" onclick="LinkButton7_Click">Actualizar</asp:LinkButton>
                  <asp:LinkButton ID="LinkButton2" runat="server" CssClass="button" 
                      onclick="LinkButton2_Click">Recalcular</asp:LinkButton>
                  <asp:LinkButton ID="LinkButton3" runat="server" CssClass="button" 
                      onclick="LinkButton3_Click">Cierre Ganado</asp:LinkButton>
                  <asp:LinkButton ID="LinkButton4" runat="server" CssClass="button" 
                      onclick="LinkButton4_Click">Cierre Perdido</asp:LinkButton>
                  <asp:LinkButton ID="LinkButton5" runat="server" CssClass="button" 
                      onclick="LinkButton5_Click">Reprogramar</asp:LinkButton>
              </asp:Panel>
              
         </div>
         
        </div>
        <h2 class="heading-title" style="font-family:Arial; font-weight:bold;"><span>Detalle</span></h2>
     
      <div id="content">
        <div class="cart-info">
          <table align="center">
            <thead>
              <tr>
                <td class="remove">Eliminar</td>
                <td class="image">producto</td>
                <td class="name">nombre</td>
                <td class="quantity">cantidad</td>
                <td class="price">precio unitario</td>
                <td class="total">Total</td>
              </tr>
            </thead>
            <tbody>
              <tr class="cat_cart">
                <td class="remove"><input type="checkbox" value="41" name="remove[]"/></td>
                <td ><a href="producto.aspx?get=FB1">
                    <img src="image/productos_mini/FUCUSVELTB.png" alt="" /></a></td>
                <td class="name"><a href="producto.aspx?get=FB1">Fucusvelt-B</a></td>
                <td class="quantity"><input type="text" size="3" value="10" name="quantity[41]"/></td>
                <td class="price">$587.50</td>
                <td class="total">$5875.00</td>
              </tr>
              <tr class="odd cat_cart">
                <td class="remove"><input type="checkbox" value="40" name="remove[]"/></td>
                <td class="image"><a href="producto.aspx?get=B03">
                    <img src="image/productos_mini/bichoof%20caps%20nva%20imagen.png" alt="Bichoof" /></a></td>
                <td class="name"><a href="producto.aspx?get=B03">Bichoof</a></td>
                <td class="quantity"><input type="text" size="3" value="1" name="quantity[40]"/></td>
                <td class="price">$118.68</td>
                <td class="total">$118.68</td>
              </tr>
              <tr class="cat_cart">
                <td class="remove"><input type="checkbox" value="48" name="remove[]"/></td>
                <td class="image"><a href="producto.aspx?get=FB1">
                    <img src="image/productos_mini/endolcha%20NVA%20IMAGEN.png" alt="Spicylicious store" /></a></td>
                <td class="name"><a href="producto.aspx?get=E05">Endolcha</a></td>
                <td class="quantity"><input type="text" size="3" value="1" name="quantity[48]"/></td>
                <td class="price">$117.50</td>
                <td class="total">$117.50</td>
              </tr>
            </tbody>
          </table>
        </div>
        
        <div class="cart-total">
          <table>
            <tbody>
              
              
              <tr>
                <td colspan="5"></td>
                <td class="right numbers_total"><b>Total:</b></td>
                <td class="right numbers_total">Q.823.68</td>
              </tr>
            </tbody>
          </table>
        </div>
      
      </div>

      <div id="Div1">
        <div class="cart-info">
        <asp:GridView ID="lista" runat="server">
            <HeaderStyle   CssClass="cart-heading"/>
        
        
        </asp:GridView>
    </div>
  </div>
  <!-- END OF CONTENT --> 
  
  <!-- PRE-FOOTER -->
  <!-- END OF PRE-FOOTER --> 
  
  <!-- FOOTER -->
  <!-- END OF FOOTER --> 
  
</div>
<!-- END OF MAIN WRAPPER --> 

<script type="text/javascript"><!--
    $('.cart-module .cart-heading').bind('click', function () {
        if ($(this).hasClass('active')) {
            $(this).removeClass('active');
        } else {
            $(this).addClass('active');
        }

        $(this).parent().find('.cart-content').slideToggle('slow');
    });
//--></script>
</body>

</asp:Content>



<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
</asp:Content>




